<template>
	<view class="page" :style="{'min-height':h+'px','padding-top':mt+'px'}">
		<c-nav-bar title="发票详情"></c-nav-bar>
		<view class="item" v-for="(item,index) in list" :key="index">
			<view class="i_top">
				<text>{{item.typename}}</text>
				<text>{{item.datetime}}</text>
			</view>
			<view class="i_title">{{item.title}}</view>
			<view class="i_date">游玩日期 {{item.date}}</view>
			<view class="i_bottom">
				<text>成人票 X{{item.ticketnum}}</text>
				<text>￥{{item.price}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				h: uni.getSystemInfoSync().windowHeight,
				mt: uni.getSystemInfoSync().statusBarHeight + 44,
				list:[]
			}
		},
		onLoad() {
			this.getOrderList();
		},
		methods: {
			getOrderList(){
				this.list = [
					{
						type:4,//1船宿通票 2船景通票 3出行 4景点 5住宿 6停车
						typename:'门票',
						datetime:'2023-12-24 11:09',
						title:'六合朝阳景区成人票',
						date:'2023-10-22',
						ticketnum:2,
						price:90
					}
				];
			}
		}
	}
</script>

<style scoped lang="less">
	.page{
		background: #F5F8FA;
		box-sizing: border-box;
		padding: 0 24rpx;
		
		.item{
			margin-top: 20rpx;
			width: 100%;
			padding: 40rpx 24rpx 40rpx 30rpx;
			box-sizing: border-box;
			background: #FFFFFF;
			border-radius: 16rpx;
			.i_top{
				display: flex;
				align-items: center;
				justify-content: space-between;
				text{
					font-size: 28rpx;
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					color: #333333;
					&:last-child{
						font-size: 26rpx;
					}
				}
			}
			.i_title{
				font-size: 32rpx;
				font-family: PingFang-SC, PingFang-SC;
				font-weight: bold;
				color: #333333;
				margin-top: 28rpx;
			}
			.i_date{
				font-size: 24rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				color: #808080;
				margin-top: 32rpx;
			}
			.i_bottom{
				display: flex;
				align-items: center;
				justify-content: space-between;
				margin-top: 32rpx;
				text{
					font-size: 24rpx;
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					color: #808080;
					&:last-child{
						font-size: 32rpx;
						font-weight: bold;
						color: #333333;
					}
				}
			}
		}
	}
</style>